<?php 
include_once "inc/docroot.php";
include_once "inc/class.autores.inc.php";
include_once PATH."common/header.php";
$autores = new autores($db);

?>

<noscript>
This site just doesn't work, period, without JavaScript
</noscript>
<?php
if(isset($_SESSION['LoggedIn']) && isset($_SESSION['Username']) && $autores->isValidUser($_SESSION['Username'])):
	include_once PATH."common/left_sidebar.php";
?>
<div id="autores_body">
<?php	
	if (empty($_GET['id'])): include_once PATH."autores/live.php";
	else: include_once PATH."autores/".$_GET['id'].".php";
	endif;
?>
</div>
<?php
else:
   include_once PATH."login.php";
endif;
?>
<?php include_once PATH."common/footer.php"; ?>
